package com.online.music.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.online.music.entity.dto.PlaylistAddSongsDTO;
import com.online.music.entity.po.Playlist;

import java.util.List;

import com.online.music.common.Result;
import com.online.music.entity.po.Song;


/**
 * @Author: Leno
 * @Date: 2025-01-31
 * @Description: IPlaylistService
 */
public interface IPlaylistService extends IService<Playlist> {

    Result<Page<Playlist>> findPage(Integer pageNum, Integer pageSize, Playlist playlist);

    Result<String> deleteBatch(List<Long> ids);


    Result<String> addSongsToPlayList(PlaylistAddSongsDTO playlistDTO);

    Result<String> removeSongsFromPlayList(PlaylistAddSongsDTO playlistDTO);

    Result<List<Song>> getPlaylistSongs(Long id, String name);

    Result<List<Song>> getAvailableSongs(String name);
}

